package com.sina.finance.api.framework.dao.rowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.sina.finance.api.framework.domain.DemoShip;
import org.springframework.jdbc.core.RowMapper;

public class DemoShipRowMapper implements RowMapper<DemoShip> {

	@Override
	public DemoShip mapRow(ResultSet rs, int rowNum) throws SQLException {
		DemoShip ship = new DemoShip();
		
		ship.setShipGUID(rs.getString("ShipGUID"));
		ship.setShipNumber(rs.getString("ShipNumber"));
		ship.setOrderGUID(rs.getString("OrderGUID"));
		ship.setShipType(rs.getString("ShipType"));
		ship.setShippingExpressName(rs.getString("ShippingExpressName"));
		ship.setShipCreateDate(rs.getTimestamp("ShipCreateDate"));

		return ship;
	}

}
